import React, { Component } from 'react'
import CTX from './store/Ctx'

export default class Content extends Component {
  
  static contextType = CTX

  render() {
  /*   console.log(this.props); */
  console.log(this.context);
  
    
    return (
      <div>
        <p>总人数:{this.context.sup+this.context.opp}</p>
        <p>支持人数:{this.props.sup}</p>
        <p>反对人数:{this.props.opp}</p>
      </div>
    )
  }
}
